package p270jp.pxv.android;

import android.content.Context;
import android.graphics.drawable.PictureDrawable;
import com.bumptech.glide.C1254e;
import com.bumptech.glide.Glide;
import com.bumptech.glide.GlideBuilder;
import com.bumptech.glide.Registry;
import java.io.InputStream;
import java.util.Objects;
import p122e6.SVG;
import p172g5.DecodeFormat;
import p499sl.SvgDecoder;
import p571vf.AndroidVersion;
import p586w5.AppGlideModule;
import p638y5.RequestOptions;

/* renamed from: jp.pxv.android.PixivGlideModule */
/* loaded from: classes2.dex */
public final class PixivGlideModule extends AppGlideModule {
    @Override // p586w5.AppGlideModule, p586w5.AppliesOptions
    /* renamed from: a */
    public void mo1021a(Context context, GlideBuilder dVar) {
        Objects.requireNonNull(dVar);
        dVar.f5790m = new C1254e(dVar, new RequestOptions().mo461j(DecodeFormat.PREFER_RGB_565));
    }

    @Override // p586w5.LibraryGlideModule, p586w5.RegistersComponents
    /* renamed from: b */
    public void mo1018b(Context context, Glide cVar, Registry registry) {
        registry.m9621i(SVG.class, PictureDrawable.class, new AndroidVersion());
        registry.m9626d("legacy_append", InputStream.class, SVG.class, new SvgDecoder());
    }
}
